<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${title!"岑峦网"}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="shortcut icon" type="image/x-icon" href="${ctx}/favicon.ico" />
<link rel="stylesheet"
	href="${ctx}/static/ext/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="${ctx}/static/css/public.css" />
<script type="text/javascript"
	src="${ctx}/static/ext/jquery/jquery-2.1.1.min.js"></script>
<script type="text/javascript"
	src="${ctx}/static/ext/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/public.js"></script>
</head>
<body>
	<nav class="navbar navbar-default" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#navbar-collapse">
					<span class="sr-only">切换导航栏显示</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="${ctx}/">
					<img src="${ctx}/static/img/logo.jpg" alt="岑峦网"/>
				</a>
			</div>
			 <div class="collapse navbar-collapse" id="navbar-collapse">
			 	<ul class="nav navbar-nav">
			 		<li><a href="${ctx}/g">相册</a></li>
			 	</ul>
			 	<ul class="nav navbar-nav navbar-right">
			 		<%if(!isEmpty(session.user)){%>
			 			<li>
			 				<a href="${ctx}/u/show">${session.user.nickname}</a>
			 			</li>
			 			<li><a href="javascript:if(confirm('确定要退出吗？')){location='${ctx}/login/logout'};">退出</a></li>
			 		<%}else{%>
				 		<li><a href="${ctx}/login">登录</a></li>
			 		<%}%>
			 	</ul>
			 </div>
		</div>
	</nav>
	<div class="container">
	${layoutContent}
	</div>

	<footer>
		<a class="text-muted" href="${ctx}/about">关于本站</a>&nbsp;|&nbsp;<a class="text-muted" href="http://www.miitbeian.gov.cn/">沪ICP备14026801号</a>
	</footer>
</body>
</html>